package com.power.wx.bean;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 从微信传递到服务器
 * 
 * @author liuming
 * 
 */
@XmlRootElement(name = "xml")
@XmlAccessorType(XmlAccessType.FIELD)
public class Message {

	// base
	@XmlElement(name = "ToUserName")
	private String toUserName; // 开发者微信号
	@XmlElement(name = "FromUserName")
	private String fromUserName; // 发送方帐号（一个OpenID）
	@XmlElement(name = "CreateTime")
	private Integer createTime; // 消息创建时间 （整型）
	@XmlElement(name = "MsgType")
	private String msgType; // 消息类型，event

	// 普通消息
	@XmlElement(name = "MsgId")
	private String msgId; // 消息ID号
	// 普通消息--文本
	@XmlElement(name = "Content")
	private String content; // 文本消息内容
	@XmlElement(name = "URL")
	private String url;
	@XmlElement(name = "Encrypt")
	private String encrypt;

	public String getToUserName() {
		return toUserName;
	}

	public void setToUserName(String toUserName) {
		this.toUserName = toUserName;
	}

	public String getFromUserName() {
		return fromUserName;
	}

	public void setFromUserName(String fromUserName) {
		this.fromUserName = fromUserName;
	}

	public Integer getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Integer createTime) {
		this.createTime = createTime;
	}

	public String getMsgType() {
		return msgType;
	}

	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}

	public String getMsgId() {
		return msgId;
	}

	public void setMsgId(String msgId) {
		this.msgId = msgId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getEncrypt() {
		return encrypt;
	}

	public void setEncrypt(String encrypt) {
		this.encrypt = encrypt;
	}

}
